{template header}

<div class="midder">

<div class="mc">

<div class="cleft">

<div class="bbox pd10">

<h1>{$strGroup[groupname]}成员</h1>

<div class="obss">

<h2>组长</h2>
<dl class="obu">
<dt>
<a class="nbg" href="{tsUrl('group','user',array('id'=>$strLeader[userid]))}"><img alt="{$strLeader[username]}" src="{$strLeader[face]}" width="48" height="48" /></a>
</dt>
<dd>
{$strLeader[username]}

</dd>
</dl>
<div class="clear"></div>

<h2>管理员</h2>

<!--{loop $arrAdmin $key $item}-->
<dl class="obu">
<dt>
<a class="nbg" href="{tsUrl('group','user',array('id'=>$item[userid]))}"><img alt="{$item[username]}" src="{$item[face]}" width="48" height="48" /></a>
</dt>
<dd>
{$item[username]}

{if $strGroup['userid']==$TS_USER['user']['userid'] || $TS_USER['user']['isadmin']==1}
<br />
<a href="{tsUrl('group','guser',array('ts'=>'manager','groupid'=>$strGroup['userid'],'userid'=>$item['userid']))}">
{if $item['isadmin']==1}
取消管理员
{elseif $item['isadmin']==0}
设为管理员
{/if}
</a>
{/if}
</dd>
</dl>
<!--{/loop}-->

<div class="clear"></div>

<h2>普通成员</h2>

<!--{loop $arrGroupUser $key $item}-->
<dl class="obu">
<dt>
<a class="nbg" href="{tsUrl('group','user',array('id'=>$item[userid]))}"><img alt="{$item[username]}" src="{$item[face]}" width="48" height="48" /></a>
</dt>
<dd>
{$item[username]}

{if $strGroup['userid']==$TS_USER['user']['userid'] || $TS_USER['user']['isadmin']==1}
<br />
<a href="{tsUrl('group','guser',array('ts'=>'manager','groupid'=>$strGroup['userid'],'userid'=>$item['userid']))}">
{if $item['isadmin']==1}
取消管理员
{elseif $item['isadmin']==0}
设为管理员
{/if}
</a>
{/if}
</dd>
</dl>
<!--{/loop}-->

<div class="clear"></div>

</div>

<div class="page">{$pageUrl}</div>

</div>

</div>


<div class="cright">
<div class="bbox pd10">
<a href="{tsUrl('group','show',array('id'=>$strGroup[groupid]))}">返回{$strGroup[groupname]}</a>
</div>
</div>
</div>
</div>

{template footer}